package com.api.shopapi.mapper;

import com.api.shopapi.entity.MeshDeviceStatusPush;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface MeshDeviceStatusPushMapper {

    @Insert("insert into mesh_device_status_push (MeshDeviceStatusCode,HeaderCode,DeviceType,Zone,AliveStatus,Model," +
            "DeviceId,DeviceName,Brand,AddTime) values " +
            "(#{meshDeviceStatusPush.MeshDeviceStatusCode},#{meshDeviceStatusPush.HeaderCode},#{meshDeviceStatusPush.DeviceType}," +
            "#{meshDeviceStatusPush.Zone},#{meshDeviceStatusPush.AliveStatus},#{meshDeviceStatusPush.Model},#{meshDeviceStatusPush.DeviceId}," +
            "#{meshDeviceStatusPush.DeviceName},#{meshDeviceStatusPush.Brand},#{meshDeviceStatusPush.AddTime})")
    int insert(@Param("meshDeviceStatusPush") MeshDeviceStatusPush meshDeviceStatusPush);
}
